function onback(){
	window.history.back(-1);
}

function toGoodManager(){
	location.href = "http://yx.fxtourong.com/V1/Goods/my_topic_manager.html";
}

$(function(){
	var headPath = localStorage.getItem("head_image");
	$("#storeset").click(function(){
		location.href = "http://yx.fxtourong.com/V1/server/storeset.html";
	});
	$("#datamanager").click(function(){
		location.href = "http://yx.fxtourong.com/V1/server/datamanager.html";
	});
	$("#marketcenter").click(function(){
		location.href = "http://yx.fxtourong.com/V1/server/marketcenter.html";
	});
	$("#managerperson").click(function(){
		location.href = "http://yx.fxtourong.com/V1/server/managerperson.html";
	});
	$("#managerfeed").click(function(){
		location.href = "http://yx.fxtourong.com/V1/server/managerfeed.html";
	});
	$("#managermoney").click(function(){
		location.href = "http://yx.fxtourong.com/V1/server/moneymanager.html";
	});
	$("#head_server").attr("src", headPath); 
	var store_id = localStorage.getItem("store_id");
	var urlPath = "http://yx.fxtourong.com/V1/Store/myStoreDetails" + "?store_id=" + store_id;
	$.ajax({
			type: "POST",
			url: urlPath,
			data: {
				token : localStorage.getItem("token")
			},
			dataType: "json",
			success: function(data) {
				console.log(data);
				var code = data.code;
				console.log(code);
				if(code == "1") {
					$("#fans_data").text(data.data.people);
					$("#income_data").text(data.data.income);
				}
			}
		});
	
});
